export const tableOption = {
  border: true, //是否带有纵向边框
  selection: true, //行最前面的选择框
  menuAlign: "center",
  searchLabelWidth: 110, //搜索项标题宽度
  searchIndex: 4, //筛选收缩
  searchIcon: true,
  align: "center", //对齐方式
  emptyText: '自定义暂无数据提示语',
  column: [
    {
      label: "序号",
      prop: "id",
      hide: true,
      editDisabled: true,
      editDisplay: false,
      addDisplay: false,
    },
    {
      label: "订单号",
      prop: "orderNo",
      type: "input",
      search: true,
      span: 12
    },
    {
      label: "是否已支付",
      prop: "hasPayed",
      type: 'switch',
      dicData: [{
        label: '已支付',
        value: true
      }, {
        label: '未支付',
        value: false
      }],
      slot: true,
      search: true,
      span: 12
    },
    {
      label: "订单状态",
      prop: "status",
      type: "select",
      dicData: [{
        label: '待处理',
        value: 1
      }, {
        label: '回调成功',
        value: 2
      }, {
        label: '回调失败',
        value: 3
      }],
      slot: true,
      search: true,
      span: 12
    },
    {
      label: "订单版本号",
      prop: "version",
      type: "input",
      span: 12
    },
    {
      label: "失败原因",
      prop: "exceptions",
      type: "input",
      span: 12
    },
    {
      label: "最终金额",
      prop: "finalMoney",
      type: "input",
      span: 12
    },
    {
      label: "商户号",
      prop: "mchId",
      type: "input",
      search: true,
      span: 12
    },
    {
      label: "pos终端号",
      prop: "posKey",
      type: "input",
      span: 12
    },
    {
      label: "支付时间",
      prop: "payTime",
      type: "datetime",
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      span: 12
    },
    {
      label: "创建时间",
      prop: "createTime",
      type: "datetime",
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      span: 12
    },

    {
      label: "交易金额",
      prop: "money",
      type: "input",
      span: 12
    },
    {
      label: "优惠金额",
      prop: "discountAmount",
      type: "input",
      span: 12
    },
    {
      label: "优惠类型",
      prop: "discountType",
      type: "select",
      dicData: [{
        label: '电子券抵扣',
        value: 1
      }, {
        label: '手工券抵扣',
        value: 2
      }],
      slot: true,
      search: true,
      span: 12
    },
    {
      label: "优惠券号",
      prop: "couponNo",
      type: "input",
      span: 12
    },
    {
      label: "优惠券抵扣金额",
      prop: "couponMoney",
      type: "input",
      span: 12
    },
    {
      label: "顾客手机号",
      prop: "phone",
      type: "input",
      search: true,
      span: 12
    },
    {
      label: "顾客卡号",
      prop: "cardNo",
      type: "input",
      search: true,
      span: 12
    },
    {
      label: "商场编码",
      prop: "storeNo",
      type: "select",
      search: true,
      dicUrl: `/admin/mall/store/list`,
      props: {
        label: 'storeName',
        value: 'storeNo'
      },
      formatter: (val, value, label) => {
        return `${label}(${value})`
      },
      rules: [
        {
          required: true,
          message: '请选择广告位置编码',
          trigger: 'blur'
        }
      ],
      span: 12
    }
  ]
}
